<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/commom.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-2.1.3.min.js" ></script>
	</head>
            <script>
            	$(function(){
            		var a = $("li").size();
            		var b = 0;
            		function hide(){
            			for (var i = 0;i<a;i++) {
            				if($("li").eq(i).val()!=b){
            					$("li").eq(i).css("display","none");
            				}
            			}
            		}
            		hide();
            		$(".prev").click(function(){
            			b--;
            			if(b<0){
            				b=a-1;
            			}
            			$("li").hide();
            			$("li").eq(b).show(1000);
            		})
            		$(".next").click(function(){
            			b++;
            			if(b>=a){
            				b=0;
            			}
            			$("li").hide();
            			$("li").eq(b).show(1000);
            		})
            	})

			</script>
	<body>
		
		<div class="container-fluid right-iframe-wrapper">
			<div class="row">
				<div class="right-title">
					<h1 class="font-18">添加社团新闻<small class="font-16">&nbsp;&nbsp;-&nbsp;&nbsp;添加社团新闻</small></h1>
				</div>
				<div class="clearfix"></div>
				
				
				<div class="clearfix col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-12 mg-top-40">
					<form action="addnewss.do">
						<div class="form-group">
							<label for="exampleInputEmail1">新闻标题</label>
							<input type="text" class="form-control" id="exampleInputEmail1" placeholder="新闻标题" name="title">
						</div>
						<div class="form-group">
							<label for="exampleInputPassword1">所属社团</label>
							<input type="text" class="form-control" id="exampleInputEmail1" readonly="true" value="${gname }" name="gname">
						</div>
						<div class="form-group">
							<label for="exampleInputEmail1">发布人</label>
							<input type="text" class="form-control" id="exampleInputEmail1" placeholder="发布人" name="master">
						</div>
						<div class="form-group">
							<label for="exampleInputEmail1">新闻内容</label>
							<textarea class="form-control" style="height:150px ;resize:none;" name="content"></textarea>
						</div>
						<!--<div class="form-group">
							<label for="exampleInputEmail1">邮箱</label>
							<input type="text" class="form-control" id="exampleInputEmail1" placeholder="邮箱">
						</div>-->
						
							<input type="submit" class="btn btn-default" value="添加" style="margin-left: 38% ;">
					</form>
					
					
				</div>
				
				
			</div>
		</div>
		
		
		
		<script src="${pageContext.request.contextPath}/js/bootstrap.min.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/jquery-2.1.3.min.js" type="text/javascript"></script>
		<script type="text/javascript">
			
			
		</script>
	</body>

</html>